package edu.whu.rose.clock.kps.algorithm.blinks.index;


public class BlockKeyword {

	private int block;
	private String keyword;
	
	public BlockKeyword(int block, String keyword) {
		this.block = block;
		this.keyword = keyword;
	}

	public int getBlock() {
		return block;
	}

	public String getKeyword() {
		return keyword;
	}

	public boolean equals(Object obj) {
		if (obj == null || !(obj instanceof BlockKeyword)) {
			return false;
		}
		BlockKeyword other = (BlockKeyword)obj;
		return block == other.getBlock() && keyword.equals(other.getKeyword());
	}
	
	public int hashCode() {
		int result = 17;
		result = 37 * result + block;
		result = 37 * result + keyword.hashCode();
		return result;
	}

}
